﻿<%@ codepage=65001%><% 'UTF-8%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#include file="../Include/Start.asp"-->
<!--#include file="../Include/Common.Security.asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--meta信息-->
<!--#include file="../Include/meta.asp"-->
<!--end meta-->
<title>消费记录保存网</title>
<link href="../v1/style-1.03.css" rel="stylesheet" type="text/css" />
<link href="../v1/help-1.02.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="../js/jquery.extend-1.06.js"></script>
<script type="text/javascript" src="../js/ask-1.06.js"></script>
</head>

<body>
	<!--header页头信息-->
	<!--#include file="../Include/header.asp"-->
	<!--end header页头信息-->
<%
	 	''定义查询字段变量
	dim id, sendtime, sender, title, incept, content, tag,tagcode
			
''用户信息
		id=ReplaceBadChar(Trim(request("id")))
		tagcode=ReplaceBadChar(Trim(request("tagcode")))
			if(""=tagcode) then response.redirect "/" ''如果id并没有传来跳转回原处
			''Dim rsObj,strSql
			set rsObj=Server.CreateObject("ADODB.Recordset")
			strSql = "Select  *  "
  		strSql=strSql & "  from T_MSG where 1=1 "
  		if(""<>tagcode) then strSql=strSql & " and tagcode='"&tagcode&"' " ''如果没有tag 查找所有的
  		''if(""<>id) then strSql=strSql & " and id='"&id&"' " ''如果没有tag 查找所有的
  			  		
  		strSql=strSql & " order by tag"
			''Response.Write strSql&"-----"
			rsObj.Open strSql, Conn, 1, 3
			If rsObj.BOF And rsObj.EOF Then 
				 response.redirect "/" ''如果id并没有传来跳转回原处
			end if	 
			''Response.Write res_name&"-----" 
			''关闭链接
			''rsObj.close		

	%>	
	
	<div class="navigation" id="navigation">
	<div class="nav-tabs">
		<ul>
			<li><a href="/"><strong><span>信息中心</span></strong></a></li>

			<li><a href="/" class="on"><strong><span><%=tag%></span></strong></a></li>
		</ul>
	</div>
	<div class="nav-body">
		<div class="body-tl"><div class="body-tr"><div class="body-tc"></div></div></div>
		<div class="panel panel-noborder">
			<div class="panel-mc">
				<div class="panel-body">

					<form action="" method="get">
						<span class="bg b-help"></span><input name="key" type="text" title="请输入关键字" value="" class="text f14" /><input name="find" type="submit" class="btn btn" value="查询" />
					</form>
				</div>
			</div>
			<div class="panel-bl"><div class="panel-br"><div class="panel-bc"><div></div></div></div></div>
			<div class="panel-spacer"></div>
		</div>
	</div>

</div><!--begin container-->
<div class="container">
<!--begin c-left-->
<div class="c-left">
<div class="panel classes">
	<div class="panel-tl"><div class="panel-tr"><div class="panel-tc"></div></div></div>
	<div class="panel-hc">
		<div class="panel-header"><p><strong><a href="/site/notice.asp?tagcode=<%=Trim(rsObj("tagcode"))%>"><%=Trim(rsObj("tag"))%></a></strong></p></div>
	</div>
	<div class="panel-body">
		<ul> 

	<%
	dim flagid
	flagid=false
	content="请选择查询信息..."
	do while not rsObj.eof		
		
		if(id=Trim(rsObj("id"))) then 		
			flagid=true	
			''id=Trim(rsObj("id"))			
			sendtime=Trim(rsObj("sendtime"))
			sender=Trim(rsObj("sender"))
			title=Trim(rsObj("title"))
			incept=Trim(rsObj("incept"))
			tag=Trim(rsObj("tag"))
			tagcode=Trim(rsObj("tagcode"))
			content=rsObj("content")
		end if
	%>

			<li><h2><a href="/site/notice.asp?tagcode=<%=Trim(rsObj("tagcode"))%>&id=<%=Trim(rsObj("id"))%>"><%=Trim(rsObj("title"))%></a></h2>
				<ul>
					<li><h3><a href="/site/notice.asp?tagcode=<%=Trim(rsObj("tagcode"))%>&id=<%=Trim(rsObj("id"))%>"><%=Trim(rsObj("incept"))%></a></h3></li> 
				</ul>
			</li>
	<%
			rsObj.movenext
	loop 
	''关闭链接
	''rsObj.close		
	%>
		
 
			
			
		</ul>
	</div>
</div>
</div>
<!--end c-left-->
<!--begin c-right-->

<div class="c-right">
	<div class="guide"><a href="#">详细信息</a></div>
	<% ''if flagid then  %>
	<div class="view">
		<div class="title">
			<h2><%=title%></h2>
			<p><%=sendtime%></p>
		</div>

		<div class="content">
			<%=content%>
		</div>
		<div class="confirm">如果对信息有疑问，请联系管理员。</div>
	</div>
	<% ''end if  %>

</div>
<!--end c-right-->
<div class="clear"></div>
</div>
<!--end container-->
<!--footer页脚信息-->
<!--#include file="../Include/footer.asp"-->
<!--end footer页脚信息-->
<script type="text/javascript">initHelp()</script>
</body>
</html>
<%
	''关闭链接
	rsObj.close		
 ''释放数据库链接
	call CloseConn
%>
